package com.macro.mall.controller;

import com.macro.mall.common.api.CommonResult;
import com.macro.mall.service.UmsMemberStatisticsInfoService;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 会员统计信息Controller
 * Created by 孙晓亮 on 2020年9月15日.
 */
@ResponseBody
@Controller
@RequestMapping("/memberStatistics")
public class UmsMemberStatisticsInfoController {


    @Autowired
    UmsMemberStatisticsInfoService umsMemberStatisticsInfoService;

    /**
     * 获取会员统计信息
     * @author 孙晓亮
     * @Date 2020年9月15日
     * @return
     */
    @ApiModelProperty("获取会员统计信息")
    @RequestMapping("/list")
    public CommonResult getMemberStaticticsList(){
        return umsMemberStatisticsInfoService.getMemberStaticticsList();
    }
}
